package exception;

/**
 *
 */
public class FinallyDemo {
    public static void main(String[] args) {
        //
        System.out.println("main方法开始");
        try {
            String str=null;
            System.out.println(str.length());
            return;
        }catch (Exception e){
            System.out.println(e);
        }finally {
            System.out.println("finally代码块");
        }
        System.out.println("main方法结束");





    }
}
